package com.bingo.datasecurity.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.bingo.datasecurity.entity.po.UserPo;
import com.bingo.datasecurity.mapper.UserMapper;
import com.bingo.datasecurity.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author bingo
 * @date 2024/2/5 16:17
 */
@Service
public class UserServiceImpl implements UserService {


    @Resource
    private UserMapper userMapper;

    @Override
    public void addUser(UserPo userPo) {
        userMapper.insert(userPo);
    }

    @Override
    public void addBatchUser(List<UserPo> userPoList) {
        userMapper.addBatchUser(userPoList);
    }

    @Override
    public List<UserPo> queryAllUser() {
        return userMapper.selectList(Wrappers.emptyWrapper());
    }

}
